<?php

header("Content-Type:text/html; charset=gb2312");

require_once "./include/common.inc.php";

if  (submitcheck("savecurriculum"))
{
    if ($uid != 0)
    {
        if (isset($_SESSION['name']))
        {
            $information = xkaddslashes(trim($information));
            $name = xkaddslashes($_SESSION['name']);
            $query = $db->query("update `{$tablepre}save` set `curriculum` = '{$information}' where `uid` = '{$uid}' and `name` = '{$name}'");
            include template("savecurriculum");            
        }
        else
        {
            include template("savecurriculum");
        }
    }
    else
    {
        include template("savecurriculum");
    }
}       

if  (submitcheck("saveascurriculum"))
{
    include template("savecurriculum");
}

?>
